package com.tyk.bookstore.front.product.model.result;


import com.tyk.bookstore.front.common.core.model.result.ResultEnum;

public enum BookResultEnum implements ResultEnum {

    BOOK_NOT_FOUND(4_04_01_01, "书籍不存在"),
    BOOK_NOT_FOUND_OR_OFF(4_04_01_02, "书籍不存在或已下架"),
    BOOK_PRICE_CHANGE(4_04_01_03, "书籍价格变动");

    private final Integer code;
    private final String msg;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    BookResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
